package product

import "crmeb-common/global"

// ProductReply 评论表
type ProductReply struct {
	global.BaseModel
	Uid int32 `json:"uid" gorm:"column=uid;comment:用户ID"`

	MerId int32 `json:"merId" gorm:"column=mer_id;comment:店铺id"`

	OrderNo string `json:"orderNo" gorm:"column=order_no;comment:订单编号"`

	OrderDetailId int32 `json:"orderDetailId" gorm:"column=order_detail_id;comment:订单商品id"`

	ProductId int32 `json:"productId" gorm:"column=product_id;comment:商品id"`

	AttrValueId int32 `json:"attrValueId" gorm:"column=attr_value_id;comment:商品规格属性id"`

	Sku string `json:"sku" gorm:"column=sku;comment:商品规格属性值,多个,号隔开"`

	Star int32 `json:"star" gorm:"column=star;comment:星级"`

	Comment string `json:"comment" gorm:"column=comment;comment:评论内容"`

	Pics string `json:"pics" gorm:"column=pics;comment:评论图片"`

	MerchantReplyContent string `json:"merchantReplyContent" gorm:"column=merchant_reply_content;comment:管理员回复内容"`

	MerchantReplyTime time.Time `json:"merchantReplyTime" gorm:"column=merchant_reply_time;comment:管理员回复时间"`

	IsReply bool `json:"isReply" gorm:"column=is_reply;comment:0未回复1已回复"`

	Nickname string `json:"nickname" gorm:"column=nickname;comment:用户名称"`

	Avatar string `json:"avatar" gorm:"column=avatar;comment:用户头像"`
}
